﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleAccounts.aspx.cs" Inherits="Zyg.SSO.Web.Admin.Role.RoleAccounts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>管理角色的用户 - 角色用户组列表 - SSO后台管理系统</title>
</head>
<body class="dbody">
    <form id="form1" runat="server">
    <p>
        <asp:Literal ID="RoleName" runat="server"></asp:Literal>的全部用户
    </p>
    <p>
        <asp:Button ID="BtnDelete" runat="server" Text="删除" CssClass="button" OnClick="BtnDelete_Click" />
    </p>
    <asp:GridView ID="GridViewRoleAccounts" runat="server" DataKeyNames="Id" AutoGenerateColumns="false"
        BorderWidth="0" CellPadding="0" CellSpacing="0" CssClass="infoTable">
        <Columns>
            <asp:TemplateField ControlStyle-CssClass="center" ItemStyle-CssClass="center">
                <HeaderTemplate>
                    <asp:CheckBox ID="CBAll" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CBSelect" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Id" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide"
                ShowHeader="false" />
            <asp:HyperLinkField DataTextField="Email" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Admin/Account/AccountDetail.aspx?id={0}"
                HeaderText="邮箱" />
            <asp:BoundField DataField="Name" HeaderText="昵称" />
            <asp:BoundField DataField="State" HeaderText="当前状态" />
            <asp:BoundField DataField="DateCreated" DataFormatString="{0: yyyy年MM月dd日 H点mm分}"
                HeaderText="注册时间" />
        </Columns>
        <EmptyDataTemplate>
            暂无相关数据</EmptyDataTemplate>
    </asp:GridView>
    </form>

    <script type="text/javascript" src="../../script/jquery/jquery-1.2.6.min.js" charset="utf-8"></script>

    <script type="text/javascript" src="../../script/zyg.sso.js" charset="utf-8"></script>

    <script type="text/javascript">
        $("#BtnDelete").attr("disabled", "disabled");
        zyg.sso.infoTable({
            id: '#GridViewRoleAccounts',
            checkAll: true,
            checkChangedCallback: function() {
                var a = arguments[0];
                if (a.checkedCount == 0) {
                    $("#BtnDelete").attr("disabled", "disabled");
                } else {
                    $("#BtnDelete").attr("disabled", "");
                }
            }
        });
    </script>

</body>
</html>
